<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

return array(
    'controllers' => array(
        'invokables' => array(
            'Album\Controller\Album' => 'Album\Controller\AlbumController'
        ),
    ),    
    'router' => array(
        'routes' => array(
            'album' => array(
                'type' => 'Segment' ,
                'options' => array(
                    'route' => '/album[/][:action][/:id]' ,
                    'constrains' => array(
                        'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'    => '[0-9]+' ,
                    ),
                    'defaults'    => array(
                        'controller' => 'Album\Controller\Album',
                        'action'     => 'index',
                    ),
                ),
            ),
        ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'album' => __DIR__ . '/../view' ,
        ),
    ),
    
);